//
// Created by Kai Wang on 2023/12/12.
//
#include "customer/customer.h"

Customer::Customer(int id, std::string name, std::string contact, float total_consumption, MemberRank member_rank)
{
    id_                = id;
    name_              = std::move(name);
    contact_           = std::move(contact);
    total_consumption_ = total_consumption;
    member_rank_       = member_rank;
}

int Customer::get_id() const
{
    return id_;
}

std::string Customer::get_name()
{
    return name_;
}

std::string Customer::get_contact()
{
    return contact_;
}

float Customer::get_total_consumption()
{
    return total_consumption_;
}

void Customer::set_total_consumption(float total_consumption)
{
    total_consumption_ = total_consumption;
}

void Customer::set_contact(const std::string &contact)
{
    contact_ = contact;
}

MemberRank Customer::get_member_rank() const
{
    return member_rank_;
}

void Customer::set_member_rank(MemberRank member_rank)
{
    member_rank_ = member_rank;
}
